package com.r2coding.types.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author caolx
 * @description 统一状态响应
 * @date 2025/8/1 15:09
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum ResponseCode {

    SUCCESS("0000", "成功"),
    UN_ERROR("0001", "未知失败"),
    ILLEGAL_PARAMETER("0002", "非法参数"),
    STRATEGY_RULE_WEIGHT_IS_NULL("ERR_BIZ_001", "业务异常，策略规则中 rule_weight 权重规则已适用但未配置"),
    STRATEGY_RULE_BLACKLIST_CONFIG_ERROR("ERR_BIZ_002", "业务异常，策略规则中 rule_blacklist配置错误无法解析"),
    STRATEGY_RULE_WHITELIST_CONFIG_ERROR("ERR_BIZ_003", "业务异常，策略规则中 rule_whitelist配置错误无法解析"),
    ;

    private String code;
    private String info;

}
